package test.enba.mq.consumer.rabbitmq.queue;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class RabbitMQQueueConsumerService {

  //  不使用交换器
  @RabbitListener(queues = "queue")
  public void receiveHelloMessage(String message) {
    System.out.println("Received message: " + message);
  }
}
